package boot.spring.po;

import boot.spring.util.Base58UUID;
import com.alibaba.fastjson.JSON;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Document(collection = "member_info_detail")
public class MemberInfoDetail {

    @Id
    private String id;

    /**
     * unionId
     */
    private String unionId;

    /**
     * 会员code
     */
    private String memberCode;
    /**
     * 会员名字
     */
    private String memberName;

    /**
     * 手机号
     */
    private String mobileNumber;
    /**
     * 会员积分
     */
    private String bonusPointBalance;
    /**
     * 积分过期时间
     */
    private String expiryDate;

    private String redemptionExpiryDate;

    private List<String> memberLabels;

    /**
     * 会员订单信息
     */
    private List<OrderInfoList> memberOrderInfoList;
    /**
     * 会员积分信息
     */
    private List<MemberBonusPointInfo> memberBonusPointInfoList;

    private String customerId;


    public MemberInfoDetail() {
        id = Base58UUID.newBase58UUID();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getUnionId() {
        return unionId;
    }

    public void setUnionId(String unionId) {
        this.unionId = unionId;
    }

    public String getMemberCode() {
        return memberCode;
    }

    public void setMemberCode(String memberCode) {
        this.memberCode = memberCode;
    }

    public String getMemberName() {
        return memberName;
    }

    public void setMemberName(String memberName) {
        this.memberName = memberName;
    }

    public String getMobileNumber() {
        return mobileNumber;
    }

    public void setMobileNumber(String mobileNumber) {
        this.mobileNumber = mobileNumber;
    }

    public String getBonusPointBalance() {
        return bonusPointBalance;
    }

    public void setBonusPointBalance(String bonusPointBalance) {
        this.bonusPointBalance = bonusPointBalance;
    }

    public String getExpiryDate() {
        return expiryDate;
    }

    public void setExpiryDate(String expiryDate) {
        this.expiryDate = expiryDate;
    }

    public String getRedemptionExpiryDate() {
        return redemptionExpiryDate;
    }

    public void setRedemptionExpiryDate(String redemptionExpiryDate) {
        this.redemptionExpiryDate = redemptionExpiryDate;
    }

    public List<String> getMemberLabels() {
        return memberLabels;
    }

    public void setMemberLabels(List<String> memberLabels) {
        this.memberLabels = memberLabels;
    }

    public List<OrderInfoList> getMemberOrderInfoList() {
        return memberOrderInfoList;
    }

    public void setMemberOrderInfoList(List<OrderInfoList> memberOrderInfoList) {
        this.memberOrderInfoList = memberOrderInfoList;
    }

    public List<MemberBonusPointInfo> getMemberBonusPointInfoList() {
        return memberBonusPointInfoList;
    }

    public void setMemberBonusPointInfoList(List<MemberBonusPointInfo> memberBonusPointInfoList) {
        this.memberBonusPointInfoList = memberBonusPointInfoList;
    }

    public String getCustomerId() {
        return customerId;
    }

    public void setCustomerId(String customerId) {
        this.customerId = customerId;
    }

    public String toString() {
        return JSON.toJSONString(this);
    }

}
